package tpoo.client.ui;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IPlaceholderFolderLayout;
import org.eclipse.ui.internal.PlaceholderFolderLayout;

import tpoo.client.ui.editors.ChatEditor;
import tpoo.client.ui.views.ContactsView;

public class PerspectiveFactory implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		  // Editors are placed for free.
        String editorArea = layout.getEditorArea();

        // Place navigator and outline to left of
        // editor area.
        IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.26, editorArea);
        
        //left.addView(IPageLayout.ID_RES_NAV);
        //left.addView(IPageLayout.ID_OUTLINE);

        bottom.addView(ContactsView.ID);
        
        //layout.setEditorAreaVisible(true);

	}
	
	

}
